package com.wildwolf.project.wildwolf.adapter;

import java.util.ArrayList;

import com.wildwolf.project.wildwolf.model.MessageEntity;

import android.content.Context;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class ChatMessageViewAdapter extends BaseAdapter {
	private static final String TAG = ChatMessageViewAdapter.class.getSimpleName();  
	 private ArrayList<MessageEntity> messages;  
private Context context;
	public ChatMessageViewAdapter(ArrayList<MessageEntity> messages, Context context) {
	super();Log.i(TAG, "init ....");
	this.messages = messages;
	this.context = context;
}

	public ArrayList<MessageEntity> getMessages() {
	return messages;
}

public Context getContext() {
	return context;
}

	@Override
	public int getCount() {
		return messages.size();
	}

	@Override
	public Object getItem(int itemId) {
		return messages.get(itemId);
	}

	@Override
	public long getItemId(int itemId) {
		return 0;
	}

	@Override
	public View getView(int position , View view, ViewGroup viewGroup) {
		return null;
	}

}
